package com

import com.entity.PackCmd
import org.junit.Test
import picocli.CommandLine
import java.util.concurrent.Callable

class CommonsTest {
    @Test
    fun test() {
        val packCmd = PackCmd {
            println("call")
        }
        val cmd = CommandLine(packCmd)
        val ag = arrayOf(
            //                "aaa"
            //                "-help"
            "-cls",
//            "-t", "1", "-r", "aa.t" ,
            "-t", "1", "add", "aaa,ss,\"cc\"", "rm", "a,b,v"
        )
        cmd.execute(*ag)
        println(packCmd.uploadFileList)
        packCmd.uploadFileList?.forEach {
            println(it)
        }
        println(packCmd.clear)


        //        ag = new String[] {
////                "aaa"
////                "-help"
//                "-t", "2"
////                "-t", "1", "-f", "aa.t", "add", "aaa,ss,cc", "rm", "a,b,v"
//        };
//        cmd.execute(ag);
//        System.out.println(packCmd);
//        cmd.printVersionHelp(System.out);
    }
}